/**
 * @param {HTMLElement} el
 * @param {string} styleName
 * @param {string} value
 */
export function setElementStyle(el: HTMLElement, styleName: string, value: string): void {
  if (!el || !styleName) return
  try {
    el.style[styleName as keyof CSSStyleDeclaration] = value
  } catch (e) {
    console.error('Error setting element style:', e)
  }
} 